<?php

class Knihovna_Model_DbTable_Usersprivileges extends Zend_Db_Table_Abstract
{
    /** @var string */
    protected $_name = 'usersprivileges';
    /** @var string */
    protected $_primary = 'id';

    /**
     * Vrátí upravené pole se zdrojem
     *
     * @author Petr Laslo
     * @param mixed $where
     * @return array $role
     */
    public function getPrivilege($where)
    {
        $privilegeslist = $this->fetchRow($where);
        $privilege = array(
            'resource' => $privilegeslist['resource'],
            'role' => $privilegeslist['role'],
            'privilege' => $privilegeslist['privilege']
        );
        return $privilege;
    }
}

